package caracter;

import java.util.Scanner;

import cl.sujey.utils.StringUtils;

public class ElSegundoCaracter {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		System.out.print("Ingrese una palabra: ");
		String theWord = scanner.next();
		System.out.print("Ingrese un caracter: ");
		String theCharacter = scanner.next();

		int nVeces = StringUtils.countCharsIn(theWord, theCharacter);
		
		System.out.println("El caracter esta contenido " + nVeces + " en la palabra.");
	}

}
